package com.mindbook.vip.gawxchatinfo.service.impl.nostrum;

import com.mindbook.vip.gawxchatinfo.entity.nostrum.FunctionLink;
import com.mindbook.vip.gawxchatinfo.mapper.nostrum.FunctionLinkMapper;
import com.mindbook.vip.gawxchatinfo.service.nostrum.FunctionLinkService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class FunctionLinkServiceImpl implements FunctionLinkService {

    @Autowired private FunctionLinkMapper functionLinkMapper;

    @Override
    public Integer removeByPrimaryKey(Integer id) {
        return null;
    }

    @Override
    public Integer add(FunctionLink functionLink) {
        return functionLinkMapper.insertSelective(functionLink);
    }

    @Override
    public Integer put(FunctionLink functionLink) {
        return functionLinkMapper.updateByPrimaryKeySelective(functionLink);
    }

    @Override
    public Integer addSelective(FunctionLink functionLink) {
        return null;
    }

    @Override
    public FunctionLink findByPrimaryKey(Integer id) {
        return null;
    }

    @Override
    public Integer saveByPrimaryKeySelective(FunctionLink functionLink) {
        return null;
    }

    @Override
    public Integer saveByPrimaryKey(FunctionLink functionLink) {
        return null;
    }

    @Override
    public List<FunctionLink> findAll() {
        return functionLinkMapper.findAll();
    }

    @Override
    public Integer remove(Integer id, Integer nostrumFunctionidId) {
        return functionLinkMapper.deleteByPrimaryKey(id,nostrumFunctionidId);
    }

    @Override
    public FunctionLink findByIdAndNostrumFunctionId(Integer id, Integer nostrumFunctionidId) {
        return functionLinkMapper.findByIdAndNostrumFunctionId(id,nostrumFunctionidId);
    }
}
